#!/usr/bin/env python
# -*- coding: utf-8 -*-
# @Time    : 2024/5/16 18:51
# @Author : 闫峰
# @File    : base.py
import json
from decimal import Decimal
from urllib import parse

import jsonpath

from common.setting import ensure_path_sep
from utils.mysqlUtils.db_pool import Database
from utils.logging_tool.init_logger import init_logger
from utils.mysqlUtils.mongodb_utils import MongoDBLink
from utils.noticeUtils.dingtalkControl import DingTalkSendMsg
from utils.otherutils.MyThreadPool import MyThreadPool
from utils.otherutils.functions_control import convert_decimal_to_places

INFO, ERROR, WARNING = init_logger()
user = parse.quote_plus("admin")
passwd = parse.quote_plus("Zhcx@2023#MonDb")
web_logs_allegro_sync_modb = MongoDBLink(
    uri=f'mongodb://{user}:{passwd}@116.205.233.77:8807/?authSource=admin',
    dbname='walmart_api_table', coll_name='web_logs_allegro_sync')

class AllegroBase:
    pass